How to find derivative by Substitution method